<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta charset="utf-8" />
		<title>登陆</title>
		<head th:insert="~{import :: head}"></head>
	</head>

	<body>
		<div class="container">
			<form class="form-signin" method="post">
				<h2 class="form-signin-heading">用户登录</h2>
				<label for="inputUserName" class="sr-only">用户名</label>
				<input type="text" id="inputUserName" name="username" class="form-control" placeholder="用户名" required autofocus>
				<label for="inputPassword" class="sr-only">密码</label>
				<input type="password" id="inputPassword" class="form-control" placeholder="密码" required>
				<div class="checkbox">
					<label>
            <input type="checkbox" value="remember-me"> 记住我
          </label>
				</div>
				<button class="btn btn-lg btn-primary btn-block" type="button" onclick="loginProcess()">登陆</button>
				<button class="btn btn-lg btn-primary btn-block" type="button" onclick="location.href='/user/registerPage'">注册</button>
				<p style="margin: 10px 0px 0px 0px;color: #93a1a1;">------------------------其他方式登陆----------------------</p>
				<a th:href="@{https://github.com/login/oauth/authorize(client_id=${githubClientId},redirect_uri=${#httpServletRequest.getServletContext().getAttribute('redirectUri')+'?type=github'},scope='user',state=1)}" >
					<img class="img-circle" width="30" style="margin: 5px 40px 0px 100px;" src="/images/github.jpg" alt="github登陆" title="github登陆"/>
				</a>
				<a th:href="@{https://gitee.com/oauth/authorize(client_id=${mayunClientId},redirect_uri=${#httpServletRequest.getServletContext().getAttribute('redirectUri')+'?type=mayun'},response_type='code')}" >
					<img class="img-circle" width="30" style="margin: 5px 0px 0px 0px;" src="/images/mayun.png" alt="码云登陆" title="码云登陆" />
				</a>
			</form>
		</div>
		<!-- /container -->
	</body>

</html>